package com.htl.exampro.exam.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 成绩表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-26
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ExamResultDO", description = "成绩表")
public class ExamResultVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 成绩记录ID
     */
    @Schema(description = "成绩记录ID")
    private String resultId;

    /**
     * 考试ID
     */
    @Schema(description = "考试ID")
    private String examId;

    /**
     * 考试名称
     */
    @Schema(description = "考试名称")
    private String examName;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String userId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 考试成绩
     */
    @Schema(description = "考试成绩")
    private Integer score;

    /**
     * 状态: 已报名、缺考、考试中、已交卷、已评分
     */
    @Schema(description = "状态: 已报名、缺考、考试中、已交卷、已评分")
    private Integer statusId;
    /**
     * 开始考试时间
     */
    @Schema(description = "开始考试时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    /**
     * 交卷时间
     */
    @Schema(description = "交卷时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    /**
     * 考试用时(分钟)
     */
    @Schema(description = "考试用时(分钟)")
    private Integer duration;

    /**
     * 考试开始时间
     */
    @Schema(description = "考试开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 考试结束时间
     */
    @Schema(description = "考试结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 试卷批改教师ID
     */
    @Schema(description = "试卷批改教师ID")
    private String gradedPerson;

    /**
     * 试卷最终批改完成时间
     */
    @Schema(description = "试卷最终批改完成时间")
    private LocalDateTime gradedTime;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createdPerson;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private String updatedPerson;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
